<?php if(empty($alumnos)):?>
<h3>NO SE ENCONTRO REGISTROS !!!</h3>
<?php else:?>
<table class="table table-striped table-bordered dTableR" id="dt_a">       
            <thead>
                <tr>                       
                    <th>Nombre</th>
                    <th>Apellido Paterno</th>
                    <th>Apellido Materno</th>                    
                    <th>Acciones</th>     
                </tr>
            </thead>
            <tbody>
                <?php foreach ($alumnos as $a): ?>
                <?php $idAlumno = $a['Alumno']['id']; ?>
                    <tr>                         
                        <td><?php echo $a['Alumno']['nombre']; ?></td>
                        <td><?php echo $a['Alumno']['ap_paterno']; ?></td>
                        <td><?php echo $a['Alumno']['ap_materno']; ?></td>                        
                        <td>
                            <?php echo $this->Html->image("iconos/alumparalelo.png", array("title" => "Alumnos Paralelos",'url' => array('controller'=>'AlumnosParalelos','action'=>'listalumnosparalelos', $idAlumno)));?> 
                            <?php echo $this->Html->image("iconos/plan.png", array("title" => "Plan",'url' => array('action' => 'verplan', $idAlumno)));?> 
                            <?php //echo $this->Html->link('ALUMNOS PARALELOS  -',array('controller'=>'AlumnosParalelos','action'=>'listalumnosparalelos',$idAlumno));?>
                            <?php //echo $this->Html->link('PLAN', array('action'=>'verplan',$idAlumno)); ?>
                            <?php
                            echo $this->Ajax->link(
                                    $this->Html->image("iconos/dalumno.png",array(
                                        'data-toggle'=>'modal',
                                        'data-backdrop'=>'static',
                                        'href'=>'#myModal23')), 
                                    array(
                                        'controller' => 'alumnos', 
                                        'action' => 'ajaxdetalle', $idAlumno
                                    ), 
                                    array(
                                        'update' => 'cargaDatos',
                                        'title' => 'Detalle del Alumno',
                                        'escape' => false
                                   )
                            );
                            ?>
                                                        
                             <?php 
                                echo $this->Html->image("iconos/edit.png", array(
                                    "title" => "Editar",
                                    'url' => array('action' => 'editar', $idAlumno)
                                ));
                            ?>                             
                             <?php 
                                echo $this->Html->image("iconos/elim.png", array(
                                    "title" => "Eliminar",
                                    'url' => array('action' => 'eliminar', $idAlumno)
                                ));
                            ?>
                            
                                                                                     
                            <?php
                            echo $this->Ajax->link(
                                    $this->Html->image("iconos/pass.png",array(
                                        'data-toggle'=>'modal',
                                        'data-backdrop'=>'static',
                                        'href'=>'#myModal23')), 
                                    array(
                                        'controller' => 'alumnos', 
                                        'action' => 'ajaxcambiapass', $idAlumno
                                    ), 
                                    array(
                                        'update' => 'cargaDatos',
                                        'title' => 'Cambia Password',
                                        'escape' => false
                                   )
                            );
                            ?>
                            <?php
                            echo $this->Ajax->link(
                                    $this->Html->image("iconos/cuentas.png",array(
                                        'data-toggle'=>'modal',
                                        'data-backdrop'=>'static',
                                        'href'=>'#myModal23')), 
                                    array(
                                        'controller' => 'alumnos', 
                                        'action' => 'pagar', $idAlumno
                                    ), 
                                    array(
                                        'update' => 'cargaDatos',
                                        'title' => 'Pagos a cancelar',
                                        'escape' => false
                                   )
                            );
                            ?> 
                            
                            <?php
                            echo $this->Ajax->link(
                                    $this->Html->image("iconos/cambiop.png",array(
                                        'data-toggle'=>'modal',
                                        'data-backdrop'=>'static',
                                        'href'=>'#myModal23')), 
                                    array(
                                        'controller' => 'Alumnos', 
                                        'action' => 'ajaxcambiaplan', $idAlumno
                                    ), 
                                    array(
                                        'update' => 'cargaDatos',
                                        'title' => 'Cambio de Plan de Pago',
                                        'escape' => false
                                   )
                            );
                            ?>
                        </td>
                    </tr>
                    <?php endforeach; ?>
            </tbody>
        </table>
<?php endif;?>